<?php
namespace app\admin\Controller;
use       think\Controller;
use       think\Db;
use       think\Request;
class Tongyong extends Controller
{
	public function use_method()
	{
		if(Request::instance()->isAjax())
		{
        $data=Request::instance()->post('content');
        file_put_contents('use_method.txt', $data);
        return json(['code'=>1]);
		}
		else
		{
			return $this->fetch();
		}
	}
	public function yingshi()
	{
		if(Request::instance()->isAjax())
		{
        $data=Request::instance()->post('content');
        file_put_contents('yingshi.txt', $data);
        return json(['code'=>1]);
		}
		else
		{
			return $this->fetch();
		}
	}
	public function lianxi()
	{
		if(Request::instance()->isAjax())
		{
        $data=Request::instance()->post('content');
        file_put_contents('lianxi.txt', $data);
        return json(['code'=>1]);
		}
		else
		{
			return $this->fetch();
		}
	}
	//设置浏览人数的倍数关系
	public function bili()
	{
		if(Request::instance()->isAjax())
		{
        $beishu=Request::instance()->post('bili');
        file_put_contents('beishu.txt',$beishu);
        return json(['code'=>1]); 
		}
		else{
		return $this->fetch();	
		}

	}
}

?>